using System;
using Volo.Abp.Domain.Entities;

namespace ERP.Team.WarehouseManagement
{
    /// <summary>
    /// 节假日设置实体
    /// </summary>
    public class HolidaysSet : Entity<int>
    {
        /// <summary>
        /// 节假日日期
        /// </summary>
        public DateTime HolidaysTime { get; set; }

        /// <summary>
        /// 节假日类型
        /// </summary>
        public string HolidaysType { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 无参构造函数
        /// </summary>
        public HolidaysSet()
        {
            CreateTime = DateTime.Now;
        }

        /// <summary>
        /// 带参构造函数
        /// </summary>
        /// <param name="holidaysTime">节假日日期</param>
        /// <param name="holidaysType">节假日类型</param>
        public HolidaysSet(DateTime holidaysTime, string holidaysType)
        {
            HolidaysTime = holidaysTime;
            HolidaysType = holidaysType;
            CreateTime = DateTime.Now;
        }
    }
} 